import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_config",{schema:"fastadmin" } )
@Index("name",["name",],{unique:true})
export class fa_config {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        unique: true,
        length:30,
        name:"name"
        })
    name:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"group"
        })
    group:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:100,
        name:"title"
        })
    title:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:100,
        name:"tip"
        })
    tip:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"type"
        })
    type:string;
        

    @Column("text",{ 
        nullable:false,
        name:"value"
        })
    value:string;
        

    @Column("text",{ 
        nullable:false,
        name:"content"
        })
    content:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:100,
        name:"rule"
        })
    rule:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"extend"
        })
    extend:string;
        
}
